Javascript is Client side scripting Language
Which is used to communicate with HTML elements.

Javascript Basic Rules :
-------------------------

1 . No need to declare datatypes of variables, this is
    same as PHP.
    Ex: var num = 123;

2. Use Comment same as C.
   Ex:

   // Single line comment
   /*
    Multi lines
    Multi lines
    Multi lines
    */

3. Semi Colon is optional in the end of statements.
   But for better programming practice we have to use that.

Ways to show output/message on browser with Javascript.
-------------------------------------------------------
1) alert("This is alert Message");
   // alert message is used to show only message with "ok" option

2) document.write("This message will show on browser");

3) confirm("Are you sure,you want to delete ?");
  // This message will appear with "OK" and "CANCEL" button.
  ==> confirm() will return "true on OK" and "false on CANCEL"
  ==> We should always use confirm() like
      <a href="#" onClick="return confirm('Are you sure?')">Delete</a>
  ==> confirm() return "true/false" to OnClick()
      and

      "Onclick =  return true/false"  to <a >
       if return true then href will work else stop further working

4) console.log("This message will appear in Firebug Console.Press F12 to check this message");

Basic Events in Javascript
--------------------------
1) onClick() // click on HTML element
2) onBlur()  // when focus out of element
3) onChange()// when change in value
4) onSubmit()// submittion of <form>

other funtions
5) .focus()
6) .select()
7) .submit()

Pre defined Objects of javascript
---------------------------------
There are two predefined objects in javascript
a) window (document+toolbar+statusbar)
b) document(visible area of HTML page is document, area of which we can check view source )
c) DOM(document object model)
  we can  say it is simply "document" , when HTML page loads
  then all the elements of HTML page register themselves
  in document object, so that in future with the help of
  document object Javascript will communicate them.



















































